<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        // 检测字符串的长度
        var str = 'my name is bob';
        console.log(str.length);
        // 字符串的拼接
        console.log('沙漠' + '骆驼')
            // 输出为沙漠骆驼
        console.log('12' + '12')
            // 输出为1212
        console.log('12' + 12)
            // 输出为1212
        console.log(12 + 12)
            // 输出为24
            // 概括为数字相加，字符相连

            // 字符串拼接的加强，变量与字符串相加的口诀：引引加加
        var age = 18;
        console.log('pink老师' + age + '岁')
        dafsdfsfgfxc
        sdsfsdf

    </script>
    士大夫大啊的
</head>

<body>

</body>

</html>